const customerColumns = {
  paid: [
    {
      title: '客户来源',
      dataIndex: 'transfer_type',
      filters: [
        { text: '转移客户', value: 'transfer' },
        { text: '我的客户', value: 'new' }
      ],
      filterMultiple: false
    },
    {
      title: '客户状态',
      dataIndex: 'customer_status'
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      scopedSlots: {
        customRender: 'business_name',
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '客户电话',
      dataIndex: 'phone',
      scopedSlots: {
        customRender: 'phone',
        filterDropdown: 'filterDropdown'
      }
    },
    // {
    //   title: '意向业务',
    //   dataIndex: 'customer_business'
    // },
    // {
    //   title: '最新进展',
    //   dataIndex: 'notes'
    // },
    {
      title: '打款总额',
      dataIndex: 'amounts',
      scopedSlots: {
        customRender: 'amounts'
      }
    },
    {
      title: '最近联系时间',
      dataIndex: 'lately_contact_time',
      sorter: true
    },
    {
      title: '领取时间',
      dataIndex: 'received_at',
      sorter: true
    },
    {
      title: '进展备注',
      dataIndex: 'notes'
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '240px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  unpay: [
    {
      title: '客户来源',
      dataIndex: 'transfer_type',
      filters: [
        { text: '转移客户', value: 'transfer' },
        { text: '我的客户', value: 'new' }
      ],
      filterMultiple: false
    },
    {
      title: '客户状态',
      dataIndex: 'customer_status'
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      scopedSlots: {
        customRender: 'business_name',
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '客户电话',
      dataIndex: 'phone',
      scopedSlots: {
        customRender: 'phone',
        filterDropdown: 'filterDropdown'
      }
    },
    // {
    //   title: '意向业务',
    //   dataIndex: 'customer_business'
    // },
    {
      title: '最近联系时间',
      dataIndex: 'lately_contact_time',
      sorter: true
    },
    {
      title: '领取时间',
      dataIndex: 'received_at',
      sorter: true
    },
    {
      title: '进展备注',
      dataIndex: 'notes',
      ellipsis: true
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '210px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  abandon: [
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      scopedSlots: {
        customRender: 'business_name',
        filterDropdown: 'filterDropdown'
      }
    },
    // {
    //   title: '客户电话',
    //   dataIndex: 'phone',
    //   scopedSlots: {
    //     filterDropdown: 'filterDropdown'
    //   }
    // },
    {
      title: '最近联系时间',
      dataIndex: 'lately_contact_time',
      sorter: true
    },
    // {
    //   title: '意向业务',
    //   dataIndex: 'intentions',
    //   key: 'intentions'
    // },
    {
      title: '备注',
      dataIndex: 'notes'
    },
    {
      title: '放弃时间',
      dataIndex: 'abandon_time',
      sorter: true
    },
    {
      title: '入库时间',
      dataIndex: 'ruku_time',
      sorter: true
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  wx: [
    {
      title: '序号',
      dataIndex: 'wx_index',
      width: '70px',
      scopedSlots: {
        customRender: 'wx_index'
      }
    },
    {
      title: '添加时间',
      dataIndex: 'created_at',
      sorter: true,
      scopedSlots: {
        customRender: 'created_at'
      }
    },
    {
      title: '微信号',
      dataIndex: 'wx_account',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '手机号码',
      dataIndex: 'phone',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '微信账号截图',
      dataIndex: 'image2',
      scopedSlots: {
        customRender: 'image2'
      }
    },
    {
      title: '客户确认截图',
      dataIndex: 'image',
      scopedSlots: {
        customRender: 'image'
      }
    },
    // {
    //   title: '是否异常',
    //   dataIndex: 'sign',
    //   scopedSlots: { customRender: 'sign' }
    // },
    {
      title: '操作',
      dataIndex: 'action',
      width: '250px',
      scopedSlots: {
        customRender: 'action'
      }
    }
  ],
  transfer: [
    {
      title: '原顾问',
      dataIndex: 'af_username'
    },
    {
      title: '新顾问',
      dataIndex: 'at_username'
    },
    {
      title: '操作人',
      dataIndex: 'op_username'
    },
    {
      title: '转移时间',
      dataIndex: 'created_at'
    }
  ],
  track: [
    {
      title: '呼出时间',
      dataIndex: 'created_at'
    },
    {
      title: '绑定账号',
      dataIndex: 'account'
    },
    // {
    //   title: '呼出时长',
    //   dataIndex: 'duration'
    // },
    {
      title: '录音回听',
      dataIndex: 'url',
      scopedSlots: { customRender: 'url' }
    }
  ],
  contract: [
    {
      title: '合同编号',
      dataIndex: 'contract_no'
    },
    {
      title: '注册名称',
      dataIndex: 'tm_name'
    },
    {
      title: '联系电话',
      dataIndex: 'phone1'
    },
    {
      title: '包含业务',
      dataIndex: 'contract_business',
      scopedSlots: { customRender: 'contract_business' }
    },
    {
      title: '总金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '合同状态',
      dataIndex: 'status_format'
    },
    {
      title: '提交时间',
      dataIndex: 'created_at'
    },
    {
      title: '签单人',
      dataIndex: 'username'
    },
    {
      title: '上任顾问',
      dataIndex: 'old_username'
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  business: [
    {
      title: '合同编号',
      dataIndex: 'contract_no'
    },
    {
      title: '业务名称',
      dataIndex: 'business_name'
    },
    {
      title: '名称',
      dataIndex: 'sb_name'
    },
    {
      title: '类别',
      dataIndex: 'sb_category'
    },
    {
      title: '打款金额',
      dataIndex: 'price',
      scopedSlots: { customRender: 'price' }
    },
    {
      title: '签单人',
      dataIndex: 'username'
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '100px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  other: [
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '客户电话',
      dataIndex: 'phone',
      scopedSlots: {
        customRender: 'phone',
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '领取时间',
      dataIndex: 'received_at',
      sorter: true
    },
    {
      title: '进展备注',
      dataIndex: 'notes',
      ellipsis: true
    },
    {
      title: '所属公司',
      dataIndex: 'company'
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '210px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  account: [],
  reject: [],
  iso: [],
  patent: [],
  notice: [],
  other2: [
    {
      title: '资源类型',
      dataIndex: 'type',
      scopedSlots: { customRender: 'type' }
    },
    {
      title: '注册名称',
      dataIndex: 'tm_name',
      scopedSlots: { customRender: 'tm_name' }
    },
    {
      title: '客户姓名',
      dataIndex: 'apply',
      scopedSlots: { filterDropdown: 'filterDropdown', customRender: 'customer_name' }
    },
    {
      title: '客户电话',
      dataIndex: 'phone',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '微信号',
      dataIndex: 'wechat',
      scopedSlots: { customRender: 'wechat' }
    },
    {
      title: '领取时间',
      dataIndex: 'received_at',
      sorter: true
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '210px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  wechat: [
    {
      title: '资源类型',
      dataIndex: 'first_type',
      scopedSlots: { customRender: 'first_type' }
    },
    {
      title: '注册名称',
      dataIndex: 'tm_name',
      scopedSlots: { customRender: 'tm_name' }
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '客户电话',
      dataIndex: 'phone',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '微信号',
      dataIndex: 'wx_account',
      scopedSlots: { customRender: 'wechat' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' },
      width: '280px'
    }
  ],
  subject: [
    {
      title: '类型',
      dataIndex: 'type'
    },
    {
      title: '名称',
      dataIndex: 'subject',
      scopedSlots: { customRender: 'subject' }
    },
    {
      title: '联系电话',
      dataIndex: 'phone',
      scopedSlots: { customRender: 'phone' }
    },
    {
      title: '资质',
      dataIndex: 'license_file',
      scopedSlots: { customRender: 'license_file' }
    },
    {
      title: '证件/营业执照编号',
      dataIndex: 'license_num',
      scopedSlots: { customRender: 'license_num' }
    },
    {
      title: '上传人',
      dataIndex: 'uploader'
    },
    {
      title: '创建时间',
      dataIndex: 'created_at_format'
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ]
}
export default customerColumns
